﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../PUB/Default.Master" CodeBehind="XDBZMANAGE.aspx.cs" Inherits="YTBZ.Z11_XD.XDBZMANAGE" %>

<%@ Register Src="../PUB/PagerNavigation.ascx" TagName="PagerNavigation" TagPrefix="ucPage" %>

<asp:Content ID="Content_FromMaster" ContentPlaceHolderID="MainContent" runat="server">
    <!-------------------------------------------------------------------------------------------------->
    <table cellspacing="3" cellpadding="0" width="100%" align="center" border="0" class="TableStyle">
        <tr>
            <td class="ItemTitle" colspan="99" height="25" id="TD_TITLE" runat="server">模块标题</td>
        </tr>
        <tr>
            <td class="TdTitleR">订单号：</td>
            <td class="TdContentL">
                <asp:TextBox ID="txtQOrderBH" runat="server" MaxLength="32" /></td>
            <td class="TdTitleR">批次号：</td>
            <td class="TdContentL">
                <asp:TextBox ID="txtQPCNum" runat="server" MaxLength="10" /></td>
            <td class="TdTitleR">创建时间：</td>
            <td class="TdContentL">
                <asp:TextBox ID="txtQInTimeB" runat="server" SkinID="txtDateSkin" /></td>
            <td class="TdTitleR">到：</td>
            <td class="TdContentL">
                <asp:TextBox ID="txtQInTimeE" runat="server" SkinID="txtDateSkin" /></td>
            <td class="TdContentL" style="width: 100%;" >
                <asp:Button ID="btnQuery" runat="server" CommandName="查询" SkinID="btnCXSkin" OnClick="btn_Click" />
            </td>
        </tr>
       
    </table>
    <!-------------------------------------------------------------------------------------------------->

    <!-------------------------------------------------------------------------------------------------->
    <table cellspacing="0" border="0" style="border-style: none; width: 100%;">
        <tr>
            <td class="ItemTitle" colspan="99" height="25" id="TD1" runat="server">导入包装信息</td>
        </tr>
        <tr>
            <td class="TdTitleR"><font style="color:red">*</font>订单号：</td>
            <td class="TdContentL">
                <asp:TextBox ID="txtEOrderBH" runat="server" MaxLength="32" /></td>
            <td class="TdTitleR"><font style="color:red">*</font>批次号：</td>
            <td class="TdContentL">
                <asp:TextBox ID="txtEPCNum" runat="server" MaxLength="10" /></td>
            <td class="TdTitleR">车型：</td>
            <td class="TdContentL">
                <asp:TextBox ID="txtECX" runat="server" MaxLength="32" /></td> 
            <td class="TdTitleR">批次数(PCS)：</td>
            <td class="TdContentL" style="width: 100%;" >
                <asp:TextBox ID="txtEPCS" runat="server" MaxLength="10" /></td>       
        </tr>
        <tr>
            <td class="TdTitleR">导入文件：</td>
            <td class="TdContentL">
                <asp:FileUpload ID="fileUp" runat="server" /></td>
                
            <td class="TdContentL" colspan="99" style="width: 100%;" >
                <asp:Button ID="btnImport" runat="server" Text="导入" CommandName="导入" OnClick="btn_Click" /> 
                <a href="../PUB/FILE/MODE/MODE_XDBZXX_TX.xlsx" target="_blank" >下载导入模板 </a>
            </td>
                
        </tr>
        <tr>
            <td colspan="99">
                <asp:Label ID="lblMSGINFO" runat="server" style="color:red" />
            </td>
        </tr>
       
    </table>
    <div id="tabShow" runat="server" style="overflow: auto; width: 100%; height: 560px;">
        <table cellspacing="0" border="0" style="border-style: none;">
            <tr>
                <td style="white-space:nowrap;">
                    订单号： <asp:TextBox ID="txtPOrderBH" runat="server" MaxLength="32" Width="110px" />
                    批次号： <asp:TextBox ID="txtPPCNum" runat="server" MaxLength="10" Width="50px" />
                    <asp:Button ID="btnZXPPrint" runat="server" Text="纸箱批量打印" OnClick="btn_Click" CommandName="纸箱批量打印" Width="90px" />&nbsp;
                    <asp:Button ID="btnTXPPrint" runat="server" Text="铁箱批量打印" OnClick="btn_Click" CommandName="铁箱批量打印" Width="90px" />                  
                </td>
                <td>
                    <ucPage:PagerNavigation ID="pgShow" runat="server" />
                </td>
                
            </tr>
        </table>
        
        <asp:GridView ID="dgList" runat="server" Style="width: 100%" AutoGenerateColumns="False" DataKeyNames="KEYID,OrderBH,PCNum,TXBH,ZXBH,ZXCC,ZXXH"
            OnRowCommand="dgList_RowCommand" OnRowDataBound="dgList_RowDataBound" OnSorting="dgList_Sorting" AllowSorting="true">
            <HeaderStyle CssClass="Gv_HeaderStyle" />
            <RowStyle CssClass="Gv_RowStyle" />
            <AlternatingRowStyle CssClass="Gv_AlternateStyle" />
            <Columns>
                <asp:BoundField DataField="PAGEROWNUM" HeaderText="序" ItemStyle-HorizontalAlign="Center" />
                 <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px">
                    <ItemTemplate>
                         <asp:LinkButton ID="lbtnZXPrint" Text="纸箱打印" runat="server" CommandArgument='<%#Eval("KEYID")%>' CommandName="纸箱打印" Visible="false" /> 
                         <asp:LinkButton ID="lbtnTXPrint" Text="铁箱打印" runat="server" CommandArgument='<%#Eval("KEYID")%>' CommandName="铁箱打印" /> 
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="OrderBH" HeaderText="订单号" SortExpression="OrderBH" ItemStyle-HorizontalAlign="Center" />     
                <asp:BoundField DataField="PCNum" HeaderText="批次号" SortExpression="PCNum" ItemStyle-HorizontalAlign="Center" />  
                <asp:BoundField DataField="TXBH" HeaderText="铁箱号" SortExpression="TXBH" ItemStyle-HorizontalAlign="Center" />  
                <asp:BoundField DataField="ZXXH" HeaderText="箱序号" SortExpression="ZXXH" ItemStyle-HorizontalAlign="Center" />  
                <asp:BoundField DataField="ZXBH" HeaderText="包装箱号" SortExpression="ZXBH" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="ZXCC" HeaderText="包装箱尺寸" SortExpression="ZXCC" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="WLBH" HeaderText="零部件图号" SortExpression="WLBH" ItemStyle-HorizontalAlign="Center" />
                 <asp:BoundField DataField="WLZWMC" HeaderText="零件中文名称" SortExpression="WLZWMC" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="140px"  />
                <asp:BoundField DataField="WLEWMC" HeaderText="零件英文名称" SortExpression="WLEWMC" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="140px" />
                <asp:BoundField DataField="WLZXSL" HeaderText="包装数量" SortExpression="WLZXSL" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="TXCC" HeaderText="铁箱尺寸" SortExpression="ZXCC" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="TXJZ" HeaderText="净重KG" SortExpression="ZXJZ" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="TXMZ" HeaderText="毛重KG" SortExpression="ZXMZ" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="CX" HeaderText="车型" SortExpression="TXCC" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="InTime" HeaderText="创建时间" SortExpression="InTime" ItemStyle-HorizontalAlign="Center" />                
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>



